package com.gcu.goods.controller;
import org.springframework.stereotype.Controller;
import com.gcu.goods.dao.BrandMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class BrandController {
@Autowired
    private BrandMapper mapper;

    @RequestMapping("/delete/{Id}")
    @ResponseBody
    public int  delete(@PathVariable("id") int id){
        return mapper.deleteById(id);
}
}
